﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FreeSql.DataAnnotations;

namespace tcm.entity.Device
{
    [Table(Name = "tcm_device_log")]
    public class DeviceLog : BaseEntity
    {  
        // `device_id` bigint(64) DEFAULT NULL COMMENT '设备id',
        public long device_id { get; set; }
        // `describe` varchar(200) DEFAULT NULL COMMENT '描述',
        public string describe { get; set; }
        // `report` varchar(200) DEFAULT NULL COMMENT '维修报告',
        public string report { get; set; }

        // `remark` varchar(200) DEFAULT NULL COMMENT '备注',
        public string remark { get; set; }  
        // `user_id` bigint(64) DEFAULT NULL COMMENT '维护人员id',
        public string user_name { get; set; }
        // `price` decimal(10,0) DEFAULT NULL COMMENT '维修价格',
        public double price { get; set; }
    }

    public class DeviceLogSelect : DeviceLog
    {
        public string site_name { get; set; }

        public long? site_id { get; set; }

        public string device_name { get; set; }

    }
}
